/*
 *    Copyright © OpenAtom Foundation.
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

package com.inspur.edp.bef.api.action.assembler;

import com.inspur.edp.cef.api.dataType.base.IDataTypeActionAssembler;
import com.inspur.edp.cef.entity.entity.IEntityData;

/** 自定义动作的组装器接口，接口中定义了自定义动作可被扩展的六个时机 */
public interface IBEActionAssembler extends IDataTypeActionAssembler {
  /** 自定义动作执行前的记录日志时机 */
  void logBeforeExecute();

  /** 自定义动作执行后的记录日志时机 */
  void logAfterExecute();

  /** 自定义动作执行失败的记录日志时机 */
  void logAfterExecuteFail();

//  boolean demandDataPermission(IEntityData data);

  // cef remove
  /**
   * 自定义动作执行前的扩展时机
   *
   * <p>//void BeforeExecute();
   */

  /**
   * 自定义动作执行后的扩展时机
   *
   * <p>//void AfterExecute();
   */

  /**
   * 自定义动作执行时抛异常的扩展时机
   *
   * @param e 异常信息
   * @return  //bool HandleException(Exception e);
   */
}
